#include <stdio.h>
#include <stdlib.h>
#include "heap.h"

static int TBL_SIZE = 10;
int main(int argc, char** argv) {
	PQueue pq = init(TBL_SIZE);
	float values[] = {5.0f, 3.0f, 6.0f, 7.0f, 1.0f, 9.0f, 4.0f, 8.0f, 2.0f};
	int len = sizeof(values) / sizeof(values[0]);

	int i;
	for (i = 0; i < len; i++) {
		insert(pq, values[i]);
	}
	printf("size=%d\n",pq->size);
	while (!isEmpty(pq)) {
		ELementType value = deleteMin(pq);
		printf("%f\n", value );
	}
}
